package kr.hkit.powerjava.chapter6.work;

import java.util.Scanner;

public class programming1 {
	public static void main(String[] args) {
		int a, b, c;
		Scanner input = new Scanner(System.in);
		
		System.out.println("정수를 입력하시오.");
		a = input.nextInt();
		System.out.println("정수를 입력하시오.");
		b = input.nextInt();
		System.out.println("정수를 입력하시오.");
		c = input.nextInt();
		
		if(a < b && a < c)
			System.out.println(a);
		else if(b < a && b < c)
			System.out.println(b);
		else if(c < a && c < b)
			System.out.println(c);
		
		if((a > b && a < c) || (a < b && a > c))
			System.out.println(a);
		else if((b > a && b < c) || (b < a && b > c))
			System.out.println(b);
		else if((c > b && c < a) || (c < b && c>a))
			System.out.println(c);
		
		if(a > b && a > c)
			System.out.println(a);
		else if(b > a && b > c)
			System.out.println(b);
		else if(c > b && c > a)
			System.out.println(c);
		
	}

}
